<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| 	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['scaffolding_trigger'] = 'scaffolding';
|
| This route lets you set a "secret" word that will trigger the
| scaffolding feature for added security. Note: Scaffolding must be
| enabled in the controller in which you intend to use it.   The reserved 
| routes must come before any wildcard or regular expression routes.
|
 */

/*
 * redirection untuk halaman directory, karena gerald mintanya agak belibet
 * penjelasan
 * 1. karena nggak bisa membuat controller dengan nama directory, maka saya buat
 * 	directory_guest dan di alihkan dengan mengubah variable $route di sini
 * 2. untuk akomodasi url dengan judul directory/[nama company]/[judul news] maka struktur dibuat 
 * 	dari yang paling kecil efeknya (hanya pengalihan controller), hingga ke yang paling luas
 * 	yang menangkap semua url dengan format directory/[nama company] diletakkan 
 * 	paling bawah
 * 3. untuk penjelasan perbaris lihat di baris tersebut
 *
 * documentation made by ibnu, confused? get in touch with him on http://twitter.com/ibnutri
 *
 */
$route['directory'] = "directory_guest";
$route['directory/advertise'] = "directory_guest/signup"; // untuk mengakomodasi signup
$route['directory/signup_success'] = "directory_guest/signup_success"; // untuk mengakomodasi signup
$route['directory/activate'] = "directory_guest/activate"; // untuk mengakomodasi signup
$route['directory/activate/:any'] = "directory_guest/activate/:any"; // untuk mengakomodasi signup
$route['directory/activated'] = "directory_guest/activated"; // untuk mengakomodasi signup
$route['directory/activated/:any'] = "directory_guest/activated/$1"; // untuk mengakomodasi signup
$route['directory/login'] = "directory_guest/login"; // mengakomodasi login
$route['directory/logout'] = "directory_guest/logout"; // mengakomodasi logout

$route['directory/panel'] = "directory_panel"; // untuk mengakomodasi directory panel
$route['directory/panel/index'] = "directory_panel/index"; // untuk mengakomodasi directory panel
$route['directory/panel/login'] = "directory_panel/login"; // untuk mengakomodasi directory panel
$route['directory/panel/company'] = "directory_panel/company"; // untuk mengakomodasi directory panel
$route['directory/panel/branch'] = "directory_panel/branch"; // untuk mengakomodasi directory panel
$route['directory/panel/branch_create'] = "directory_panel/branch_create"; // untuk mengakomodasi directory panel
$route['directory/panel/branch_edit'] = "directory_panel/branch_edit"; // untuk mengakomodasi directory panel
$route['directory/panel/branch_edit/:any'] = "directory_panel/branch_edit/:any"; // untuk mengakomodasi directory panel
$route['directory/panel/branch_delete/:any'] = "directory_panel/branch_delete/:any"; // untuk mengakomodasi directory panel
$route['directory/panel/products'] = "directory_panel/products"; // untuk mengakomodasi directory panel
$route['directory/panel/photo'] = "directory_panel/photo"; // untuk mengakomodasi directory panel
$route['directory/panel/news'] = "directory_panel/news"; // untuk mengakomodasi directory panel
$route['directory/panel/news_create'] = "directory_panel/news_create"; // untuk mengakomodasi directory panel
$route['directory/panel/news_edit'] = "directory_panel/news_edit"; // untuk mengakomodasi directory panel
$route['directory/panel/news_edit/:any'] = "directory_panel/news_edit/:any"; // untuk mengakomodasi directory panel
$route['directory/panel/news_delete/:any'] = "directory_panel/news_delete/:any"; // untuk mengakomodasi directory panel
$route['directory/panel/preview'] = "directory_panel/preview"; // untuk mengakomodasi directory panel
$route['directory/panel/payment'] = "directory_panel/payment"; // untuk mengakomodasi directory panel
$route['directory/panel/payment_bt'] = "directory_panel/payment_bt"; // untuk mengakomodasi directory panel
$route['directory/panel/payment_cc'] = "directory_panel/payment_cc"; // untuk mengakomodasi directory panel

$route['directory/:any/:any'] = "directory_guest/news/$1/$2"; // untuk mengakomodasi url pada news
$route['directory/:any'] = "directory_guest/detail/$1"; // untuk mengakomodasi url company yang bersangkutan

$route['network/find_network'] = "network/find_network"; // untuk mengakomodasi url pada network
$route['network/search_network'] = "network/search_network"; // untuk mengakomodasi url pada network
$route['network/network_invite/:any'] = "network/network_invite/$1"; // untuk mengakomodasi url pada network
$route['network/network_invite_submit'] = "network/network_invite_submit"; // untuk mengakomodasi url pada network
$route['network/reason_check'] = "network/reason_check"; // untuk mengakomodasi url pada network
$route['network/update_member_status/:any/:any/:any'] = "network/update_member_status/$1/$2/$3"; // untuk mengakomodasi url pada network
$route['network/read_alert/:any/:any'] = "network/read_alert/$1/$2"; // untuk mengakomodasi url pada network
$route['network/all_network'] = "network/all_network"; // untuk mengakomodasi url pada network
$route['network/join_network/:any'] = "network/join_network/$1"; // untuk mengakomodasi url pada network
$route['network/create_network'] = "network/create_network"; // untuk mengakomodasi url pada network
$route['network/create_network/:any'] = "network/create_network/$1"; // untuk mengakomodasi url pada network
$route['network/alerts/:any'] = "network/alerts/$1"; // untuk mengakomodasi url pada network => alerts
$route['network/member/:any'] = "network/member/$1"; // untuk mengakomodasi url pada network => member
$route['network/managers/:any'] = "network/managers/$1"; // untuk mengakomodasi url pada network => managers
$route['network/create_network_finish/:any'] = "network/create_network_finish/$1"; // untuk mengakomodasi url pada network => managers
$route['network/check_networkname'] = "network/check_networkname"; // untuk mengakomodasi url pada network => managers
$route['network/check_networkname_json'] = "network/check_networkname_json"; // untuk mengakomodasi url pada network => managers
$route['network/:any'] = "network/about_network/$1"; // untuk mengakomodasi url pada network ,about menggunakan url nama

$route['default_controller'] = "landing";
$route['scaffolding_trigger'] = "";


/* End of file routes.php */
/* Location: ./system/application/config/routes.php */
